/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package parser;

import java.awt.Color;

/**
 *
 * @author nate
 */
public class AttributePhrase extends NounPhrase
{
    String parentClass;

    public AttributePhrase(String at, String cl)
    {
        super(at);
        parentClass = cl;
    }

    @Override
    public void Print()
    {
        System.out.println(nounPhrase + ": I am an Attribute of " + parentClass);
    }

    @Override
    public Color getColor()
    {
        return Color.ORANGE;
    }
    public String getAssociations()
    {
        return parentClass;
    }

    public String getType()
    {
        return "attribute";
    }

}


